cmbitmap.htmlHTMLudog.πùΔ¢πùΔ¢ÅÅîä Monkeybread Realbasic plugin - Documentation - CMBitmap

MBS Plugin Documentation

This is the documentation for the Realbasic Plugins from Monkeybreadsoftware.de. You find these plugins and the newest version of this document at http://www.monkeybreadsoftware.de/realbasic inside the plugins section.

This help was last updated on Freitag, 6. September 2002 and covers 2136 items: 126 classes, 2 controls and 583 global functions.

The list of the themes Global methods by category Global methods by name The list of the classes The list of the controls

class CMBitmap

class, ICM Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Works.
Function: A class for a bitmap.
Notes:
Inside a memoryblock the Pixels are stored in 16bit words.
You can create it yourself if you set all properties correctly or using the functions CreateCMBitmapFromPicture and NewCMBitmap.

Channels as integer

property, ICM Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Works.
Function: The number of channels in this bitmap.
Notes: For example 3 on RGB or 4 on CMYK.

ColorSpaceType as integer

property, ICM Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Works.
Function: The Signature of the Colorspace.
Notes:
The list of Colorspace signatures:

SigXYZData&h58595A20L 'XYZ '
SigLabData&h4C616220L 'Lab '
SigLuvData&h4C757620L 'Luv '
SigYCbCrData&h59436272L 'YCbr'
SigYxyData&h59787920L 'Yxy '
SigRgbData&h52474220L 'RGB '
SigGrayData &h47524159L 'GRAY'
SigHsvData&h48535620L 'HSV '
SigHlsData&h484C5320L 'HLS '
SigCmykData &h434D594BL 'CMYK'
SigCmyData&h434D5920L 'CMY '
Sig2colorData&h32434C52L '2CLR'
Sig3colorData&h33434C52L '3CLR'
Sig4colorData&h34434C52L '4CLR'
Sig5colorData&h35434C52L '5CLR'
Sig6colorData&h36434C52L '6CLR'
Sig7colorData&h37434C52L '7CLR'
Sig8colorData&h38434C52L '8CLR'
Sig9colorData&h39434C52L '9CLR'
Sig10colorData&h41434C52L 'ACLR'
Sig11colorData&h42434C52L 'BCLR'
Sig12colorData&h43434C52L 'CCLR'
Sig13colorData&h44434C52L 'DCLR'
Sig14colorData&h45434C52L 'ECLR'
Sig15colorData&h46434C52L 'FCLR'

Data as Memoryblock

property, ICM Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Works.
Function: The binary data for the pixels stored in 16bit words.

Height as integer

property, ICM Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Works.
Function: The height of the Bitmap in Pixels.

Invert

method, ICM Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Works.
Function: Inverts the bitmap data.
Notes: Requires correct settings for rowbytes, height and data properties.

Picture as Picture

method, ICM Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Works.
Function: Creates a picture from the CMBitmap.
Notes:
From a 16bit picture to a Realbasic picture with 8 bit per Pixel you certainly loose some precision.
Requires correct settings for rowbytes, width, height and data properties.

PixelSize as integer

property, ICM Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Works.
Function: The number of bytes in one pixel.
Notes: Normally: PixelSize=2*Channels, because we use 16bit words for data storing.

RowBytes as integer

property, ICM Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Works.
Function: The number of bytes in one row.
Notes:
Normally: rowbytes=pixelsize*width+padding
Where padding is some extra bytes.

Width as integer

property, ICM Mo, 15. Jul 2002
Mac OS Classic: Works. Mac OS Carbon: Works. Windows: Works.
Function: The width of the Bitmap in Pixels.

Contact

Written 2002 by Christian Schmitz. Feel free to ask or report mistakes to realbasic@macsw.de.
Thanks.

This resource fork intentionally left blank ˇˇ